package demo.dao;

import redis.clients.jedis.Jedis;

/**
 * User: zigang.wang
 * Date: 12-5-8
 * Time: 下午3:28
 */
public class RedisDao {
    private Jedis jedis;

    public RedisDao(final String host, final int port, final int timeout) {
        this.jedis = new Jedis(host, port, timeout);
    }

    public Jedis getJedis() {
        return jedis;
    }

    public static void main(String[] args) {
        Jedis jedis= new Jedis("localhost", 6379, 1000);
//        jedis.set("abc", "a");
        System.out.println(jedis.get("abc"));
    }




}
